.class Lcom/estrongs/android/pop/zeroconf/d$f;
.super Lcom/estrongs/android/pop/zeroconf/d;
.source "DNSQuestion.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/zeroconf/d;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "f"
.end annotation


# direct methods
.method constructor <init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/estrongs/android/pop/zeroconf/d;-><init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;Z)V

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/zeroconf/h;Ljava/util/Set;)V
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/android/pop/zeroconf/h;",
            "Ljava/util/Set<",
            "Lcom/estrongs/android/pop/zeroconf/e;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/DNSEntry;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    .line 2
    iget-object v1, p1, Lcom/estrongs/android/pop/zeroconf/h;->k:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 3
    iget-object v0, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    if-eqz v0, :cond_0

    instance-of v0, v0, Ljava/net/Inet4Address;

    if-eqz v0, :cond_0

    .line 4
    new-instance v0, Lcom/estrongs/android/pop/zeroconf/e$b;

    iget-object v2, p1, Lcom/estrongs/android/pop/zeroconf/h;->k:Ljava/lang/String;

    sget-object v3, Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;->CLASS_IN:Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;

    const/4 v4, 0x1

    const/16 v5, 0xe10

    iget-object v6, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    move-object v1, v0

    invoke-direct/range {v1 .. v6}, Lcom/estrongs/android/pop/zeroconf/e$b;-><init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;ZILjava/net/InetAddress;)V

    invoke-interface {p2, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 5
    :cond_0
    iget-object v0, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    if-eqz v0, :cond_1

    instance-of v0, v0, Ljava/net/Inet6Address;

    if-eqz v0, :cond_1

    .line 6
    new-instance v0, Lcom/estrongs/android/pop/zeroconf/e$c;

    iget-object v2, p1, Lcom/estrongs/android/pop/zeroconf/h;->k:Ljava/lang/String;

    sget-object v3, Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;->CLASS_IN:Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;

    const/4 v4, 0x1

    const/16 v5, 0xe10

    iget-object v6, p1, Lcom/estrongs/android/pop/zeroconf/h;->m:Ljava/net/InetAddress;

    move-object v1, v0

    invoke-direct/range {v1 .. v6}, Lcom/estrongs/android/pop/zeroconf/e$c;-><init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;ZILjava/net/InetAddress;)V

    invoke-interface {p2, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    :cond_1
    return-void

    .line 7
    :cond_2
    iget-object v1, p1, Lcom/estrongs/android/pop/zeroconf/h;->n:Lcom/estrongs/android/pop/zeroconf/f;

    if-eqz v1, :cond_3

    .line 8
    iget-object v1, v1, Lcom/estrongs/android/pop/zeroconf/f;->k:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 9
    new-instance v0, Lcom/estrongs/android/pop/zeroconf/d$e;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/DNSEntry;->b()Ljava/lang/String;

    move-result-object v1

    sget-object v2, Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;->TYPE_PTR:Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/DNSEntry;->c()Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;

    move-result-object v3

    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/DNSEntry;->e()Z

    move-result v4

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/estrongs/android/pop/zeroconf/d$e;-><init>(Ljava/lang/String;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordType;Lcom/estrongs/android/pop/zeroconf/constants/DNSRecordClass;Z)V

    .line 10
    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/pop/zeroconf/d$e;->a(Lcom/estrongs/android/pop/zeroconf/h;Ljava/util/Set;)V

    return-void

    .line 11
    :cond_3
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/zeroconf/d;->b(Lcom/estrongs/android/pop/zeroconf/h;Ljava/util/Set;)V

    return-void
.end method
